<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/11 0011
  Time: 下午 4:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>Title</title>

    <script src="../../js/jquery-3.3.1.min.js" charset="utf-8"></script>
    <script src="../../js/cookie/jquery.cookie.js" charset="utf-8"></script>
    <script src="../../layui-v2.4.5/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="../../layui-v2.4.5/layui/css/layui.css" media="all">
    <style>
        .mingcheng{
            display: flex;
            margin: 50px 0 -63px 0;
        }
        .liebiao{
            margin: 0;
            padding: 9px 15px;
        }
    </style>
</head>
<body>

<br>
<br>
<br>
<form class="layui-form layui-form-pane" action="/shop/orderDetailsInfo?cardId=${cardId}">
    <div class="layui-form-item" >
        <div style="margin: 0 0 0 90%;">
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right;margin-right: 100px"  href="javascript:location.replace(location.href);" title="刷新">
                <i class="layui-icon" style="line-height:30px">刷新</i></a>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">卡中名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.commodityName}" placeholder="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">面值</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.feedbackValue}" placeholder="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">折扣</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.discount}" placeholder="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.createTime}" placeholder="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">推送平台</label>
        <div class="layui-input-block">
            <input type="text"  autocomplete="off" readonly="readonly"
                value="<c:choose>
                 <c:when test="${ fn :contains(data.id,'SXK')}">速销卡</c:when>
                <c:when test="${ fn :contains(data.id,'XK')}">闲卡网</c:when>
                <c:when test="${ fn :contains(data.id,'YJF')}">易缴费</c:when>
                <c:when test="${ fn :contains(data.id,'SK')}">收卡啦</c:when>

                <c:otherwise>未匹配到</c:otherwise>
            </c:choose>"
                   placeholder="" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">返回描述</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.returnMsg}" placeholder="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">卡类型名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${data.className}" placeholder="" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">转账反馈</label>
        <div class="layui-input-block">
            <input type="text" name="title" autocomplete="off" readonly="readonly" value="${payLog.returnMsg}" placeholder="" class="layui-input">
        </div>
    </div>





</form>

<%--<table class="layui-hide" id="test" lay-filter="test"></table>--%>

<script>
    /*layui.use('table', function(){
        var table = layui.table;

        table.render({

            elem: '#test'
            ,url:'/shop/orderDetailsInfo?cardId=${cardId}'
            ,toolbar: '#toolbarDemo'
            ,title: '推卡详情'
            ,cols: [[
                {field:'commodityName', title:'卡中名称', width:100, fixed: 'left', unresize: true}
                ,{field:'feedbackValue', title:'面值',  width:180, fixed: 'left'}
                ,{field:'discount', title:'折扣', width:180, fixed: 'left'}
                ,{field:'createTime', title:'创建时间',  width:180, fixed: 'left'}
                ,{field:'returnMsg', title:'返回描述',width:180, fixed: 'left'}
                ,{field:'className', title:'卡类型名称',width:180, fixed: 'left'}
            ]]
            ,page: true
        });

    });*/
</script>


</body>
</html>
